#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpSocket>

#include "nntpclient.h"
#include "databasemanager.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void showServerSettings();
    void databaseExists(bool exists);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;
    QTcpSocket *socket;
    NNTPClient *client;
    DatabaseManager *databaseManager;
};

#endif // MAINWINDOW_H
